package com.template.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.template.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author yumuyang
 * @since 2021-11-01
 */
public interface UserService extends IService<User> {

    public Integer isUser(String username);

    public Integer isPassword(String username, String password);

    public Page<User> selectAllPage(Integer pn);

    public void deleteUserById(Integer id);

    public void saveUser(User user);

    public void updateUser(User user);

    public Page<User> selectAllPageByWrapper(Integer pn, Integer departmentid, String keyword);

    public User getUserInfo(String username, String password);
}
